#!/usr/bin/python
import urllib
def fetch_thing(url, params, method):
    params = urllib.urlencode(params)
    if method=='POST':
        f = urllib.urlopen(url, params)
    else:
        f = urllib.urlopen(url+'?'+params)
    return (f.read(), f.code)


content, response_code = fetch_thing("http://192.168.0.14:8000", 
                              "", 
                              'GET'
                         )
print response_code